package cn.z2huo.demo.spring.cloud.alibaba.provider.api.user;

import cn.z2huo.demo.spring.cloud.alibaba.provider.constant.ProviderAppConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <p>
 *
 * @author z2huo
 */
//@Component
//@RequestMapping("/user")
@FeignClient(ProviderAppConstants.PROVIDER_APP)
public interface UserClient {

    @GetMapping("/user/getUserNameByCode")
    String getUserNameByCode(@RequestParam String userCode);

}
